package com.study.talk.netty.message.response;

import com.study.common.annotation.Desc;
import com.study.talk.netty.message.MessageType;
import com.study.talk.netty.message.TalkMessage;

@Desc("群聊消息响应")
public class GroupMessageResponse extends TalkMessage {

    @Desc("发送人id")
    private Integer sendUserId;

    @Desc("发送人姓名")
    private String sendUserName;

    @Desc("发送人昵称")
    private String sendUserNickName;

    @Desc("发送人头像")
    private String avatar;

    @Desc("群聊id")
    private Integer groupId;

    @Desc("消息内容")
    private String content;

    @Desc("消息类型")
    private Integer messageType;

    @Override
    public byte getType() {
        return MessageType.GROUP_MESSAGE_RESPONSE;
    }

    public GroupMessageResponse(Integer sendUserId, String sendUserName, String sendUserNickName,String avatar, Integer groupId, String content, Integer messageType) {
        this.sendUserId = sendUserId;
        this.sendUserName = sendUserName;
        this.sendUserNickName = sendUserNickName;
        this.avatar = avatar;
        this.groupId = groupId;
        this.content = content;
        this.messageType = messageType;
    }

    public GroupMessageResponse() {
    }

    public String getSendUserNickName() {
        return sendUserNickName;
    }

    public void setSendUserNickName(String sendUserNickName) {
        this.sendUserNickName = sendUserNickName;
    }

    public Integer getSendUserId() {
        return sendUserId;
    }

    public void setSendUserId(Integer sendUserId) {
        this.sendUserId = sendUserId;
    }

    public String getSendUserName() {
        return sendUserName;
    }

    public void setSendUserName(String sendUserName) {
        this.sendUserName = sendUserName;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getMessageType() {
        return messageType;
    }

    public void setMessageType(Integer messageType) {
        this.messageType = messageType;
    }
}
